package com.cr.admin.system.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class SysDictUpdateParam {

    @NotNull(message = "字典id不能为空")
    @ApiModelProperty(value = "字典id", required = true)
    private Long id;

    @NotEmpty(message = "字典名称不能为空")
    @ApiModelProperty(value = "字典名称", required = true)
    private String name;

    @NotEmpty(message = "字典代码不能为空")
    @ApiModelProperty(value = "字典代码", required = true)
    private String code;

    @ApiModelProperty("角色备注")
    private String remark;

}
